Graph is mainly a module (containing a set of methods) and a special window class which add some functions to draw axis and curves in a window.
I took up the function names in the Basic HP (Xaxis, Yaxis, Scale,..)
Installing
You need a Mac PPC or 68K and RealBasic version DR1r33 or better.
If you want to play quickly with it, run the demo file I provided.
Disclaimer
The software as been created by Claude Korber.
It’s has been developed using the DR1r33 versions of RealBasic™. Pay attention that you could have impatibilities with other versions because RealBasic is evolving very quickly.
I had no time to test it on other plateform than mine (PPC 6400/200)
I cannot garantee it’s all bug free; the user assumes all responsability for any damage caused directly or indirecly, by its use.
Distribution
You may copy and give away this software freely, but be sure to include this ReadMe.
Use within your pragrams
Simply add to your program, the module "GraphWin" and the window class "GraphMod", by dropping them into the projet window.
You have now access to the following methods :
NewGraph <Window name>
Scale <Xmin, Xmax, Ymin, Ymax>
Xaxis <Xintersection, XGraduation>
Yaxis <Yintersection, YGraduation>
Plot <Xmin, Xmax, Number of points>
The function to draw must be filled in the funct method (open the "GraphMod").
Example (include in the demo file)
NewGraph "Mygraph"
Scale -2,5,-5,10
Xaxis 0,0.5
Yaxis 0,1
Plot -2,5, 100
In the Funct method :
So that the result is :
Note : the window is fully re-sizeable.
Contacts and references
My e-mail adress is Korber@club-internet.fr
RealBasic™ is developed by Andrew Barry from REAL Software Inc.